<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script type='text/javascript' src='js/vue.js'></script>
</head>

<body>
    <div id='app'>
        {{msg}}=======
        <p v-html='msg2' @click='aa($event)'></p>


        ====阻止冒泡=====
        <div @click='father'>
            我是father
            <div @click='son'>我是son</div>
        </div>
    </div>

    <script type='text/javascript'>
        var vm = new Vue({
            el: '#app',
            data: {
                msg: 'Hello Vue',
                msg2: '<div>这是一个1111标签======</div>',
                ff: '这是一个bb'
            },
            methods: {
                aa(e) {
                    console.log(e.target.innerText, 1111);
                },

                bb() {
                    console.log(222222);
                },

                father(){
                    console.log('我是father');
                    
                },
                son(){
                    console.log('我是son');
                    
                }
            }
        });




    </script>
</body>

</html>